<?php

namespace App\Helpers;

class KeyHandler
{


    //登录短信验证码
    const LOGIN_SMS_CODE = 'login_sms_code:%s';
    const LOGIN_SMS_CODE_TTL = 5 * 60;


    //接待人队列锁
    const RECEPTION_CACHE_LOCK = 'reception_cache_lock:%s';

    //接待人队列
    const RECEPTION_USER = 'reception_user:%s';

    //优先接待人队列
    const PRIORITY_RECEPTION_USER = 'priority_reception_user:%s';


    //选项配置
    const OPTION = 'option:%d';
    const OPTION_TTL = 5 * 24 * 60 * 60;


    //首页销售统计(全部)
    const HOME_SALE = 'home_sale:%d';
    //首页销售统计(个人)
    const HOME_SALE_PERSONAL = 'home_sale_personal:%d_%d';


    //首页招商统计(全部)
    const HOME_MERCHANT = 'home_merchant:%d';
    //首页招商统计(个人)
    const HOME_MERCHANT_PERSONAL = 'home_merchant_personal:%d_%d';


    //首页销售额统计(全部)
    const HOME_SALE_PERFORMANCE = 'home_sale_performance:%d';
    //首页销售额统计(个人)
    const HOME_SALE_PERSONAL_PERFORMANCE = 'home_sale_personal_performance:%d_%d';


    //首页招商额统计(全部)
    const HOME_MERCHANT_PERFORMANCE = 'home_merchant_performance:%d';
    //首页招商额统计(个人)
    const HOME_MERCHANT_PERSONAL_PERFORMANCE = 'home_merchant_personal_performance:%d_%d';


    //管理员对应的员工信息
    const ADMIN_USER_INFO = 'admin_user_info:%d';
    const ADMIN_USER_INFO_TTL = 3 * 24 * 60 * 60;


    const SALE_STATISTICS = 'sale_statistics:%s_%s';
    const SALE_STATISTICS_TTL = 15 * 60;


    //首页客户录入统计(全部)
    const HOME_CUSTOMER = 'home_customer:%d';
    //首页客户录入统计(个人)
    const HOME_CUSTOMER_PERSONAL = 'home_customer_personal:%d_%d';

}
